const {scp2} = require('./util')

const server = {
  host: '192.168.1.199',
  port: 22,
  username: 'zsr',
  password: '123'
}

//  /D:/ReleaseMZWeb
//  D:\\Softwares\\我的项目\\dist\\*
try {
  scp2({ ...server, uploadFileDir: './dist', targetDir: '/D:/ReleaseMZWeb' })
} catch (e) {
  console.log(e)
}

//  theophilusx/ssh2-sftp-client
//  winscp.exe /console /command "option batch continue"
//  "open sftp://zsr:123@192.168.1.199:22"
//  "option transfer binary"
//  "put .\dist /D:/AAA" exit /log=D:\uploadProjectLog
